build: Add a GIR dependency to PangoCairo
authorEmmanuele Bassi <ebassi@gnome.org>
Fri, 5 Mar 2021 14:37:31 +0000 (14:37 +0000)
committerEmmanuele Bassi <ebassi@gnome.org>
Thu, 11 Mar 2021 16:37:38 +0000 (16:37 +0000)
This is not strictly needed from an introspection perspective, but:

 - GTK strictly depends on PangoCairo internally
 - we want to integrate the GDK docs with PangoCairo's

So even though we don't have an explicit dependency on PangoCairo types
in our ABI, we do assume that people will be able to use the PangoCairo
API with GTK.

gtk/meson.build

index f35b5459695ff28fd7090334a2120655b6b0c23d..90d7b277a9c495e38972092b6a5428cf1d57ea06 100644 (file)
@@ -1152,8 +1152,9 @@ if build_gir
 
   if pango_dep.type_name() == 'internal'
     gdk_gir_inc += subproject('pango').get_variable('pango_gir').get(0)
+    gdk_gir_inc += subproject('pango').get_variable('pangocairo_gir').get(0)
   else
-    gdk_gir_inc += 'Pango-1.0'
+    gdk_gir_inc += ['Pango-1.0', 'PangoCairo-1.0']
   endif
 
   gdk_gir = gnome.generate_gir(libgtk,